//用于隐藏对未使用代码的警告
#![allow(dead_code)]

//use core::num::fmt::Part::Num;

enum Number {
    Zero,
    One,
    Two,
}

enum Color {
    Red = 0xff0000,
    Green = 0x00ff00,
    Blue = 0x0000ff,
}

pub fn example() {
    println!("Zero is {}",Number::Zero as i32);
    println!("One is {}",Number::One as i32);

    println!("roses are #{:06x}",Color::Red as i32);
    println!("violets are #{:06x}",Color::Blue as i32);
}